<?php

$length = strlen(@$_GET['c']);

if ( @$_GET['t'] == 1 )
{
	$wide = $length / 3 * 18;
}
else
{
	$wide = 280;
}

$str = iconv( "GB2312", "UTF-8", base64_decode( @$_GET['c'] ) );
@header( "content-type:image/gif" );
$pic = imagecreate( $wide, 14 );
$black = imagecolorallocate( $pic, 255, 255, 255 );
$white = imagecolorallocate( $pic, 255, 0, 0 );
$font = "data/SIMSUN.TTC";
imagettftext( $pic, 10, 0, 0, 13, $white, $font, $str );
imagegif( $pic );
imagedestroy( $pic );

?>